package cn.happyio.demoliteFlow.running;

import cn.happyio.demoliteFlow.chain.exec.ChainExecService01;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ChainRunning implements ApplicationRunner {
    @Resource
    private ChainExecService01 chainRunningService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("running ***!");
        chainRunningService.test();
    }
}
